#include "KeyTemplate.h"
#include <string>
#include <iostream>
using namespace std;


KeyTemplate::KeyTemplate()
{
	//---------------------(    keyOfContents,         keyOfOrigin       )
	//naver
	this->naver.SetKeyValues( "blog.rss.naver.com", "<div class=\"post-view pcol2\">" );


	//tistory
	this->tistory1.SetKeyValues( "Tistory 1.1", "<div class=\"article\">" );
	this->tistory2.SetKeyValues( "Tistory 1.1", "<div class=\"article_contents\">" );
	this->tistory3.SetKeyValues( "Tistory 1.1", "<div class=\"entrydesc\">" );
	this->tistory4.SetKeyValues( "Tistory 1.1", "<div class=\"post\">" );
	this->tistory5.SetKeyValues( "Tistory 1.1", "<div class=\"article_body\">" );
	this->tistory6.SetKeyValues( "Tistory 1.1", "<div class=\"article_contents" );
	this->tistory7.SetKeyValues( "Tistory 1.1", "<div class=\"article_holder" );
	this->tistory8.SetKeyValues( "Tistory 1.1", "<div class=\"article" );
	this->tistory9.SetKeyValues( "Tistory 1.1", "<div class=\"entry\">" );
	this->tistory10.SetKeyValues( "Tistory 1.1", "<td class=article>" );
	this->tistory11.SetKeyValues( "Tistory 1.1", "<td class=\"td_body" );
	this->tistory12.SetKeyValues( "Tistory 1.1", "<div class=\"content" );

	//이미지 , 글을 각각 따로 읽어올때

	//egloos
	this->egloos1.SetKeyValues( "Powered by egloos", "<div class=\"content\">" );
	this->egloos2.SetKeyValues( "Powered by egloos", "<div class=post_body>" );
	this->egloos3.SetKeyValues( "Powered by egloos", "<DIV CLASS=POST_BODY>" );
	this->egloos4.SetKeyValues( "Powered by egloos", "<DIV CLASS=POST_EDIT>" );

	//daum
	this->daum1.SetKeyValues( "blog.daum.net/xml/rss", "<div id=\"cContentBody\">" );
	this->daum2.SetKeyValues( "blog.daum.net/xml/rss", "<div id=\"cContentBodyTheme\">" );
}

KeyTemplate::~KeyTemplate()
{
}

KeyTemplate::KeyTemplate( const KeyTemplate& source )
{
	this->naver = source.naver;
	
	this->tistory1 = source.tistory1;
	this->tistory2 = source.tistory2;
	this->tistory3 = source.tistory3;
	this->tistory4 = source.tistory4;
	this->tistory5 = source.tistory5;
	this->tistory6 = source.tistory6;
	this->tistory7 = source.tistory7;
	this->tistory8 = source.tistory8;
	this->tistory9 = source.tistory9;
	this->tistory10 = source.tistory10;
	this->tistory11 = source.tistory11;
	this->tistory12 = source.tistory12;
	
	this->egloos1 = source.egloos1;
	this->egloos2 = source.egloos2;
	this->egloos3 = source.egloos3;
	this->egloos4 = source.egloos4;

	this->daum1 = source.daum1;
	this->daum2 = source.daum2;
}

KeyTemplate& KeyTemplate::operator = ( const KeyTemplate& source )
{
	this->naver = source.naver;
	
	this->tistory1 = source.tistory1;
	this->tistory2 = source.tistory2;
	this->tistory3 = source.tistory3;
	this->tistory4 = source.tistory4;
	this->tistory5 = source.tistory5;
	this->tistory6 = source.tistory6;
	this->tistory7 = source.tistory7;
	this->tistory8 = source.tistory8;
	this->tistory9 = source.tistory9;
	this->tistory10 = source.tistory10;
	this->tistory11 = source.tistory11;
	this->tistory12 = source.tistory12;
	
	this->egloos1 = source.egloos1;
	this->egloos2 = source.egloos2;
	this->egloos3 = source.egloos3;
	this->egloos4 = source.egloos4;

	this->daum1 = source.daum1;
	this->daum2 = source.daum2;

	return (*this);
}

#if 0

int main()
{
	cout<<" template well! "<<endl;
	return 0;
}

#endif

